##parameters=modelidentitylist=[]
#getModelsExcluding:
#this script in conjunction with an edit to the myk skin
#will exclude models listed in the myk skin code
#<metal:block tal:repeat="model python:here.getModelsExcluding(modelidentitylist=['model_ids'])">
#------------------------------------------------
securityService = context.knowledgeengine_securityservice
allmodels = securityService.getModels()

if modelidentitylist==[]:
    return allmodels

orderedmodels=[]
for model in allmodels:
    if model.getIdentity() not in modelidentitylist:
        orderedmodels.append(model)

return orderedmodels
#------------------------------------------------
